/*
  Copyright 2014 Google Inc.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

//
// Smaller version of the google3 equivalent, for use on Windows only.

#include <unistd.h>

#include "base/commandlineflags.h"
#include "base/init_google.h"
#include "base/logging.h"
#include <gtest/gtest.h>

DEFINE_bool(silent_init, false, "No log message on initialization.");

void InitGoogle(const char* usage, int* argc, char*** argv,
                bool remove_flags) {
  // We initialize test parameters as well.
  testing::InitGoogleTest(argc, *argv);
  ParseCommandLineFlags(argc, argv, remove_flags);

  logging::InitLogging("", logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
                       logging::DONT_LOCK_LOG_FILE,
                       logging::APPEND_TO_OLD_LOG_FILE);
  // TODO: Need to implement Initializer first.
  // RUN_MODULE_INITIALIZERS();
}
